Return to doc.sitecore.com

Valid for Sitecore 5.3
9.  Setting the Base Templates
Prev

A template inherits fields from all templates it’s based on.

Select the Base Template tab in the Template Editor to view the base templates and their fields. 

/upload/sdn5/end user/template manager 5.3/setbasetemplate1.png

The ‘base template’ field of every template allows adding multiple templates. Inheriting from more than one template means inheriting the union of their fields.

For example, instead of containing all the sections in its own body, the standard template now inherits from multiple base templates (all defined at /sitecore/templates/system/templates/sections), each containing one particular section. 

/upload/sdn5/end user/template manager 5.3/setbasetemplate2.png

To add or remove base templates you should access the Base Template field. To do this you should switch from the Template Editor view to the field view. To do this, navigate to the View tab and turn the Editor command off: 

/upload/sdn5/end user/template manager 5.3/setbasetemplate3.png

You will see the base template field instead of the Template Editor. Add or remove the base templates as desired. The sort order of base templates does not affect the sorting of their sections and fields in the target template.

/upload/sdn5/end user/template manager 5.3/setbasetemplate4.png


Prev